package com.rxkj.entity.sys;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * 用户信息
 *
 * @author alex
 * @date 2022-10-26 15:10:18
 */
@Data
@ApiModel("用户信息实体类")
public class UserInfo implements Serializable {

    @ApiModelProperty(value = "用户id")
    private Integer id;

    @ApiModelProperty(value = "组织id，业主id")
    private Integer gid;

    @ApiModelProperty(value = "组织、业主名称")
    private String gname;

    @ApiModelProperty(value = "角色id")
    private Integer rid;

    @ApiModelProperty(value = "用户编码code")
    private String userCode;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "用户id")
    private String userPwd;

    @ApiModelProperty(value = "密码盐")
    private String pwdSalt;

    @ApiModelProperty(value = "电话")
    private String userTel;

    @ApiModelProperty(value = "微信信息1 备用")
    private String userWechat1;

    @ApiModelProperty(value = "微信信息2 备用")
    private String userWechat2;

    @ApiModelProperty(value = "微信信息3 备用")
    private String userWechat3;

    @ApiModelProperty(value = "邮箱 备用")
    private String email;

    @ApiModelProperty(value = "是否启用 0 false，1 true")
    private Integer enabled;

    @ApiModelProperty(value = "本次登陆时间")
    private Date loginLastTime;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更改时间")
    private Date updateTime;

    @ApiModelProperty(value = "用户说明 备注")
    private String userRemark;

    @ApiModelProperty(value = "表备注")
    private String remark;

    @ApiModelProperty(value = "角色等级，数值越小级别越高")
    //封装vo 字段（不在对应表中）
    private Integer roleLevel; //用户所对应角色等级，数值越小级别越高 1 admin > 2 user > 3 guest

}
